package cn.itsource.ymcc.feign;

import cn.itsource.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "service-media",fallbackFactory = MediaSearchFeignFallbackFactory.class)
public interface MediaSearchFeign {
    @RequestMapping(value = "/mediaFile/course/{id}",method = RequestMethod.GET)
    JSONResult getByCourseId(@PathVariable("id")Long id);
}
